/**
 * 
 */
package adnotatio.common.xml.gwt;

import adnotatio.common.xml.XMLDocument;
import adnotatio.common.xml.XMLText;

import com.google.gwt.xml.client.CharacterData;
import com.google.gwt.xml.client.Text;

/**
 * @author kotelnikov
 */
public class GwtXmlText extends XMLText {

    /**
     * 
     */
    public GwtXmlText(XMLDocument doc, CharacterData characterData) {
        super(doc, characterData);
    }

    /**
     * @see adnotatio.common.xml.XMLText#getText(java.lang.Object)
     */
    protected String getText(Object node) {
        return ((Text) node).getData();
    }

}
